package com.inibb.app.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;


@Entity
@Table(name = "Shopping_Cart")
public class ShoppingCart implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer cartId;
	private Integer userId;
	private Integer goodsId;
	private Integer qty;
	private Date createdDate;
	private Date updatedDate;

	@Id
	@Column(name = "CART_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@OrderBy("ASC")
	public Integer getCartId() {
		return cartId;
	}

	public void setCartId(Integer id) {
		this.cartId = id;
	}
	@Column( name="USER_ID" )
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	@Column( name="GOODS_ID" )
	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	@Column( name="QTY" )
	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}
	@Column( name="CR_DTTM" )
	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	@Column( name="LST_UPD_DTTM" )
	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	
	
	
}
